package com.zh.singletonmode.services.lazy;

import java.io.Serializable;

public class LazySingletonSerialize implements Serializable {
    private LazySingletonSerialize() {
    }

    private static LazySingletonSerialize lazySingletonSerialize = null;

    public static LazySingletonSerialize getInstance() {
        if (lazySingletonSerialize == null) {
            lazySingletonSerialize = new LazySingletonSerialize();
        }
        return lazySingletonSerialize;
    }

    private Object readResolve(){
        return lazySingletonSerialize;
    }
}
